package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.UserFlagBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.GetUserFlagIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class GetUserFlagModel extends RetrofitBaseModel implements GetUserFlagIface<UserFlagBean> {
    private AllService allService;
    private Retrofit retrofit;
    public GetUserFlagModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void getUserFlag(String userid, TListener<UserFlagBean> tListener) {
        Call<UserFlagBean> call = allService.getUserFlag(userid);
        callenqueue(call,tListener);
    }
}
